package com.secxiot.provider.system.dao;

import com.secxiot.provider.system.entity.AppNews;
import com.secxiot.provider.system.entity.AppNewsExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AppNewsDao {
    int countByExample(AppNewsExample example);

    int deleteByExample(AppNewsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(AppNews record);

    int insertSelective(AppNews record);

    List<AppNews> selectByExample(AppNewsExample example);

    AppNews selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") AppNews record, @Param("example") AppNewsExample example);

    int updateByExample(@Param("record") AppNews record, @Param("example") AppNewsExample example);

    int updateByPrimaryKeySelective(AppNews record);

    int updateByPrimaryKey(AppNews record);
}